package com.yun.blog.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * title        : Star
 * projectName  : dantouBlog-back
 * description  : 收藏关系表 pojo
 * author       : simple
 * email        : yun_simple@163.com
 * date         : 2023/1/21下午6:55
 */

@Data
@TableName("blog_star")
@ApiModel(value = "Star",discriminator = "一条收藏记录")
public class Star {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer starId;

    @ApiModelProperty(value = "收藏家id")
    private Integer userId;

    @ApiModelProperty(value = "博客主键id")
    private Integer blogId;

    @JsonFormat(pattern = "yyyy年MM月dd日 hh:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "收藏时间")
    private Date starTime;
}
